package org.devocean.groupbuying.utils;

import java.util.Comparator;

import org.devocean.groupbuying.domain.Discount;

public class DiscountComparator implements Comparator<Discount> {

	public int compare(Discount o1, Discount o2) {
		int comp = 0;
		if (o1.getDiscountPrice() >= o2.getDiscountPrice()) {
			comp = 1;
		}
		return comp;
	}

}
